cmake_minimum_required(VERSION 2.6)
project(colliding-trains)

# The version number.
set (VERSION_MAJOR 1)
set (VERSION_MINOR 0)


find_package(Boost)
find_package(OpenGL)

set(CMAKE_CXX_FLAGS "-g -Wall -std=gnu++0x -O2 ")
set(CMAKE_EXE_LINKER_FLAGS "-s")  ## Strip binary

#building just a library. 
add_library(railway railway.cpp route.cpp train.cpp impl.cpp data.h)

add_executable(colliding-trains colliding-trains.cpp)

target_link_libraries (colliding-trains railway)
